<div class="events form">
    <?php echo $this->Form->create('Event', array('action'=>'add','enctype' => 'multipart/form-data')); ?>
	<fieldset>
 		<legend><?php __('Add Event'); ?></legend>
        <?php
            echo $this->Form->input('event_name',array('label'=>'Event name'));
            echo $this->Form->input('description',array('label'=>'Description'));
            echo $this->Form->input('image',array('type'=>'file','label'=>'Event image'));
            echo '<center>';
            echo $this->Html->image('default_event.jpg', array('alt' => 'Preview','id'=>'previewField'));
            echo '</center>';
            echo '<br/><br/>';
            echo $this->Form->input('capacity',array('label'=>'Capacity'));
            echo $this->Form->input('event_start',array('label'=>'Event start date'));
            echo $this->Form->input('event_end',array('label'=>'Event end date'));
            echo $this->Form->input('rsvp_start',array('label'=>'Rsvp start date'));
            echo $this->Form->input('rsvp_end',array('label'=>'Rsvp end date'));
            $options = array('invite'=>'Invite','public'=>'Public');
            $attributes = array('legend'=>'Event type');
            echo $this->Form->radio('event_type',$options,$attributes);
            echo $this->Form->input('venue_addr1',array('label'=>'Street Line 1'));
            echo $this->Form->input('venue_addr2',array('label'=>'Street Line 2'));
            echo $this->Form->input('venue_city',array('label'=>'City'));
            echo $this->Form->input('venue_state',array('label'=>'State'));
            echo $this->Form->input('venue_postal',array('label'=>'Postal'));
        ?>
	</fieldset>
    <div style="float:right;">
    <?php echo $this->Form->end('Create'); ?>
    </div>
    <div style="clear:both;"></div>
</div>
